//
//  NewMissionListDetailHeaderCell.m
//  HCNewGoldFinger
//
//  Created by 刘琛 on 2018/4/13.
//  Copyright © 2018年 zjhcsoftios. All rights reserved.
//

#import "NewMissionListDetailHeaderCell.h"
#import <SDWebImage/UIImageView+WebCache.h>
#import "NetworkAddress.h"

@implementation NewMissionListDetailHeaderCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setModel:(NewMissionListDetailHeaderModel *)model {
    _model = model;
    
    if (_model.isActive) {
        [_imageView sd_setImageWithURL:[NSURL URLWithString:[NSString stringWithFormat:@"%@%@", NMarketMainUrl,_model.iconActive]] completed:nil];
    }else {
        
        [_imageView sd_setImageWithURL:[NSURL URLWithString:[NSString stringWithFormat:@"%@%@", NMarketMainUrl,_model.iconUnactive]] completed:nil];
    }
}

@end
